package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"week3/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//广告添加
	beego.Router("/add", &controllers.AdsController{}, "post:Add")
	//广告列表展示
	beego.Router("/list", &controllers.AdsController{}, "get:List")
	//广告修改
	beego.Router("/update", &controllers.AdsController{}, "post:Update")
	//广告删除
	beego.Router("/del", &controllers.AdsController{}, "post:Del")
}
